home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 May: Tool Chest / Dev.CD May 97 TC.toast / Sample Code / Snippets / Files / CreateDirWCustIcon / CreateDirWCustIcon.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-09  |  1.5 KB  |  68 lines  |  [TEXT/CWIE]

  1. /*** MyShell.h *****/
  2. /*** I get tired of clutter.  ***/
  3.  
  4.  
  5. /*****    #includes    *****/
  6. #include    <QuickDraw.h>
  7. #include    <Fonts.h>
  8. #include    <Menus.h>
  9. #include     <Events.h>
  10. #include    <Gestalt.h>
  11. #include    <Windows.h>
  12. #include    <Dialogs.h>
  13. #include    <Desk.h>
  14. #include     <Resources.h>
  15. #include    <SegLoad.h>
  16. #include    <ToolUtils.h>
  17. #include    <Types.h>
  18. #include    <AppleEvents.h>
  19. #include    <Files.h>
  20. #include    <ConditionalMacros.h>
  21. #include    <DiskInit.h>
  22.  
  23.  
  24. /*****    #defines    *****/
  25. #define     NIL                    0L            /*  could also be written  "0x00000000"        */
  26. #define        UNIMPLEMENTED         0xA89F        /* A-trap code for unimplemented function     */
  27. #define        WAITNEXTEVENT        0xA860        /* A-trap code for WaitNextEvent()             */
  28.  
  29. /*    kExtremeNeg and kExtremePos are used to set up wide open rectangles and regions. */
  30. #define kExtremeNeg                -32700
  31. #define kExtremePos                32700
  32.  
  33.  
  34. #define        WINDOWID            2000
  35. #define        PUTINFRONT            (WindowPtr) -1L
  36.  
  37. #define        ABOUTID                5000
  38.  
  39. #define        APPLEMENU            5001
  40. #define            appleABOUT        1
  41. #define        FILEMENU            5002
  42. #define            fileQUIT        1
  43. #define        EDITMENU            5003
  44. #define            editUNDO        1
  45.             /* ---------- */
  46. #define            editCUT            3
  47. #define            editCOPY        4
  48. #define            editPASTE        5
  49. #define            editCLEAR        6
  50. #define            editSELECTALL    7
  51.  
  52. #define        TESTMENU                5004
  53. #define            testDOTHETEST        1
  54.  
  55. #define        MAXMENUS            4
  56. #define        FIRSTMENUID            5001
  57.  
  58. #define        TESTALERTID            6000
  59. #define        BADSYSTEMID            6001
  60. #define        BADQUICKDRAWID        6002
  61. #define        NOAPPLEEVENTS        6003
  62.  
  63.  
  64. // Handy macros
  65. #define TopLeft(aRect)    (* (Point *) &(aRect).top)
  66. #define BotRight(aRect)    (* (Point *) &(aRect).bottom)
  67.  
  68.